package com.meta.platform.login.plus.vcode.rest.req;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 账号注册
 *
 * @author pengjianfeng
 * @version 1.0
 * @date 2021/1/12 3:06 下午
 */
@Data
@ApiModel(description = "账号注册")
public class RegisterCmd {
    
    @ApiModelProperty(notes = "租户id，请联系管理员获取")
    @NotNull(message = "租户id不能为空")
    private Long tenantId;
    
    @ApiModelProperty(notes = "用户域key，请联系管理员获取")
    @NotBlank(message = "用户域key不能为空")
    private String domainKey;
    
    @ApiModelProperty(notes = "手机号码")
    @NotBlank(message = "手机号码不能为空")
    private String phoneNumber;
    
    @ApiModelProperty(notes = "短信验证码")
    @NotBlank(message = "短信验证码不能为空")
    private String vCode;
    
    @ApiModelProperty(notes = "密码")
    private String password;
    
}
